package com.test.proxy.dynamic;

/**
 * @Author: junwe
 * @Date: 2020/12/16 21:07
 */
public class Client {
    public static void main(String[] args) {
        // 创建目标对象
        IteacherDao teacherDao = new TeacherDao();
        // 创建代理对象
        IteacherDao proxyTarget = (IteacherDao) new ProxyFactory(teacherDao).getProxyTarget();
        proxyTarget.teach();
    }
}
